package com.woniuxy.three.pms.order.service;

import java.util.List;

import com.woniuxy.three.pms.bean.GuestBean;
import com.woniuxy.three.pms.bean.OrderBean;
import com.woniuxy.three.pms.bean.OrderChildBean;
import com.woniuxy.three.pms.bean.UserBean;

public interface IOrderService {
	int deleteByPrimaryKey(Integer id);				//通过主键删除订单
    
	String insert(OrderBean record);							//新增订单
    
    String insertSelective(OrderBean record);			//动态插入
   
    int updateByPrimaryKeySelective(OrderBean record);				//通过id动态更新

    int updateByPrimaryKey(OrderBean record);						//通过id更新所有
    
    void cancelOrderByid(Integer id);												//取消订单
    
    
    public OrderBean findbyid(Integer id);								//通过id查找订单
    
    OrderBean findbyOrderid(String orderId);											//通过订单id查找订单
    	
    public List<OrderBean> findbyuserid(Integer userid);					//通过用户id查找订单
    
    public List<OrderBean>   findbyuserattr(UserBean user);			//通过用户属性查找订单，比如身份证、电话号码
    
    List<OrderBean> findbyGuestattr(GuestBean guest);			//通过宾客属性查找订单，姓名，身份证
    
    public List<OrderBean> findall();								//查找所有订单
    
    public List<OrderBean> findbystate(String state);									//通过订单状态查找订单
    
    List<OrderBean> findbyPaystate(String paystate);									//通过支付状态查找订单
    
    int updateByorderId(OrderChildBean record);									//通过订单id动态更新

    List<OrderBean> findGuestByGuestName(GuestBean record);
    
    public OrderBean findbyOrderid1(String orderId);
}
